package com.jyw.business.comp.service.impl;

import java.util.List;
import org.springframework.stereotype.Service;
import com.jyw.business.comp.mapper.CompSchedulePlanMapper;
import com.jyw.business.comp.domain.CompSchedulePlan;
import com.jyw.business.comp.service.ICompSchedulePlanService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;

/**
 * 综合-值班班次安排Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-25
 */
@Service
public class CompSchedulePlanServiceImpl extends ServiceImpl<CompSchedulePlanMapper,CompSchedulePlan> implements ICompSchedulePlanService
{
    @Resource
    private CompSchedulePlanMapper compSchedulePlanMapper;

    /**
     * 查询综合-值班班次安排
     * 
     * @param id 综合-值班班次安排主键
     * @return 综合-值班班次安排
     */
    @Override
    public CompSchedulePlan selectCompSchedulePlanById(Long id)
    {
        return compSchedulePlanMapper.selectCompSchedulePlanById(id);
    }

    /**
     * 查询综合-值班班次安排列表
     * 
     * @param compSchedulePlan 综合-值班班次安排
     * @return 综合-值班班次安排
     */
    @Override
    public List<CompSchedulePlan> selectCompSchedulePlanList(CompSchedulePlan compSchedulePlan)
    {
        return compSchedulePlanMapper.selectCompSchedulePlanList(compSchedulePlan);
    }

    /**
     * 新增综合-值班班次安排
     * 
     * @param compSchedulePlan 综合-值班班次安排
     * @return 结果
     */
    @Override
    public int insertCompSchedulePlan(CompSchedulePlan compSchedulePlan)
    {
        return compSchedulePlanMapper.insertCompSchedulePlan(compSchedulePlan);
    }

    /**
     * 修改综合-值班班次安排
     * 
     * @param compSchedulePlan 综合-值班班次安排
     * @return 结果
     */
    @Override
    public int updateCompSchedulePlan(CompSchedulePlan compSchedulePlan)
    {
        return compSchedulePlanMapper.updateCompSchedulePlan(compSchedulePlan);
    }

    /**
     * 批量删除综合-值班班次安排
     * 
     * @param ids 需要删除的综合-值班班次安排主键
     * @return 结果
     */
    @Override
    public int deleteCompSchedulePlanByIds(Long[] ids)
    {
        return compSchedulePlanMapper.deleteCompSchedulePlanByIds(ids);
    }

    /**
     * 删除综合-值班班次安排信息
     * 
     * @param id 综合-值班班次安排主键
     * @return 结果
     */
    @Override
    public int deleteCompSchedulePlanById(Long id)
    {
        return compSchedulePlanMapper.deleteCompSchedulePlanById(id);
    }
}
